package com.weiguan.xmpp.test;

import java.util.HashMap;
import java.util.Map;

public class TaskHelp {
	public static final String serviceName = "weilive.tv";
	public static final String host = "120.131.9.35";
	public static final int ADD_COUNT = 10;
	private static final Map<String, ThreadTask> task = new HashMap<String, ThreadTask>();
	
	public static synchronized ThreadTask getTask(String roomnName) {
		return task.get(roomnName);
	}

	public static synchronized void addTask(String roomName, ThreadTask threadTask) {
		task.put(roomName, threadTask);
	}

	public static synchronized void removeTask(String roomName) {
		task.remove(roomName);
	}
}
